home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 May: Tool Chest / Dev.CD May 98 TC.toast / Tool Chest / Testing & Debugging / Virtual User tools / VU Assist Modules for MacApp / Assist Module MA 3.0 / C++ interface to VUAssist / UVUAssist.h < prev   
Encoding:
C/C++ Source or Header  |  1993-09-17  |  2.2 KB  |  80 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    File:        UVUAssist.h - MacApp 3.0 compatible version
  3.  *
  4.  *    Contains:    C++ header file for the V.U. Assistance Hook for MacApp applications, which is
  5.  *    implemented in Object Pascal.
  6.  *
  7.  *    Written by:    Jim Schneider and Jeroen Schalk
  8.  *
  9.  *    Copyright:    © 1991-92 by Apple Computer, Inc., all rights reserved.
  10.  *
  11.  *  Version: 1.0a1
  12.  *
  13.  *    Change History:
  14.  *
  15.  *            2/13/92    JAS          indicate 3.0 compatibility, change version
  16.  *            1/28/92    JAS          add kVUAssistIdleFreq constant
  17.  *          1/27/92    JAS            indicate 3.0b4 compatibility, change version
  18.  *          10/4/91    JAS            indicate 3.0b2 compatibility, change version
  19.  *          9/10/91    JAS            indicate 3.0b2PQR compatibility, change version
  20.  *            8/21/91    JAS            change version number
  21.  *          8/20/91    JAS            remove debugging code
  22.  *            8/19/91    JAS            change case of of GridItemSupport to gridItemSupport
  23.  *           8/16/91 JAS          change header for 3.0b2PQR
  24.  *          8/15/91    JAS          change case of boolean, add GridItemSupport arg to IVUAssist
  25.  *          8/15/91    Jim          add fGridItemSupport as new data member to TVUAssist
  26.  *          8/13/91    Jim          stripped down to essentials, make TVUAssist subclass of TEvtHandler 
  27.  *          1/18/91    Jim          modified Jeroen Schalk's header posted on Virtual User Discussion 
  28.  *
  29.  */
  30.  
  31.  
  32. #ifndef __UVUASSIST__
  33. #define __UVUASSIST__
  34.  
  35. #ifndef __UEVENTHANDLER__
  36. #include <UEventHandler.h>
  37. #endif
  38.  
  39. /* ================================================================== */
  40. /* Constant definitions */
  41.  
  42. const kVUAssistIdleFreq    = 1;
  43.  
  44.  
  45. /* ================================================================== */
  46. /* Class definitions */
  47.     
  48. class TVUAssist : public TEventHandler {
  49.     
  50.     private:
  51.       
  52.         short     fMoleRefNum;
  53.         
  54.         Boolean    fGridItemSupport; 
  55.     
  56.         public:
  57.       
  58.         virtual pascal void IVUAssist(Boolean gridItemSupport);
  59.         
  60.         virtual pascal void OpenMoleDriver(void);
  61.         
  62.         virtual pascal void SuspendMole(void);
  63.         
  64.         virtual pascal void ResumeMole(void);
  65.         
  66.         virtual pascal void SetDebuggerHook(ProcPtr NewHook);
  67.     
  68.         virtual pascal short MoleAssist(short Select, Ptr Input, Ptr Output, short *OutputSize, 
  69.             short IntResult);
  70.         
  71.     };
  72.  
  73.  
  74. /* ================================================================== */
  75. /* Variable definitions */
  76.  
  77. TVUAssist *gVUAssist;
  78.  
  79. #endif // of #ifndef __UVUASSIST__
  80.